package org.nfIt.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.nfIt.dto.order.OrderStatisticsDto;
import org.nfIt.entity.order.OrderStatistics;

import java.util.List;

/**
 * ClossName:OrderStatisticsMapper
 * Pakage:org.nfIt.mapper
 * Description
 *
 *
 * 定义定时任务的mapper
 *
 * @Author L
 * @Create 2024/9/9 20:25
 * @Version 2023.1.3
 */
@Mapper
public interface OrderStatisticsMapper {
    /**
     * 把统计之后的数据,添加到统计结果的表里
     * @param orderStatistics  统计之后的数据
     */
    void insert(OrderStatistics orderStatistics);

    /**
     * 根据dto条件查询统计结果数据，返回list集合
     * @param orderStatisticsDto
     */
    List<OrderStatistics> selectList(OrderStatisticsDto orderStatisticsDto);
}
